<template>
    <fieldset>
        <legend>defineApi组件</legend>
        <!-- <childCom></childCom> -->
        <parentCom></parentCom>
    </fieldset>
</template>
<script setup>
    // defineProps defineEmits defineExopse
    // import childCom from "./child.vue"
    import parentCom from "./parent.vue"
    import { onErrorCaptured } from "vue";

    onErrorCaptured((err,instance,info)=>{
        console.log('er======',toString);
        console.log('instancve====',err);
        console.log('info',err);
        return false
        // 可以阻止错误传播
        
    })
</script>

